import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import Router from './router'

// 引入 element-plus UI
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'

// 引入通用样式
import './assets/css/common.css'
import './assets/css/main.css'

const app = createApp(App)
const pinia = createPinia()

app.use(Router).use(pinia).use(ElementPlus).mount('#app')
;(window as any).vm = app
;(window as any).vm = Object.assign((window as any).vm, app.config.globalProperties)
